package com.msxt.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.msxt.dto.TokenEntity;
import com.msxt.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * token服务接口
 */
public interface TokenService extends IService<TokenEntity> {
	PageUtils queryPage(Map<String, Object> params);

	List<TokenEntity> listView(QueryWrapper<TokenEntity> wrapper);

	PageUtils queryPage(Map<String, Object> params, QueryWrapper<TokenEntity> wrapper);

	String generateToken(Long userid, String username, String tableName, String role);

	TokenEntity getTokenEntity(String token);
}